package com.ruicar.afs.cloud.afscase.loandealerfirstmortgage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.afscase.loandealerfirstmortgage.condition.LoanDealerFirstMortgageCondition;
import com.ruicar.afs.cloud.afscase.loandealerfirstmortgage.entity.LoanDealerFirstMortgage;

import java.util.List;

public interface LoanDealerFirstMortgageService extends IService<LoanDealerFirstMortgage> {

    /**
     * 获取所有合作商首单信息
     *
     * @param page
     * @param condition
     * */
    IPage<LoanDealerFirstMortgage> getDealerFirstMortgageList(Page page, LoanDealerFirstMortgageCondition condition);

    /**
     * 修改是否首单抵押状态
     *
     * @param idList
     * @param status
     * */
    Integer modifyIsFirstMortgage(List idList, String status);
    /**
     * 合作商批量修改是否首单抵押状态
     *
     * @param channelCodeList
     * @param status
     * */
    Integer modifyIsFirstMortgageList(List channelCodeList,String status);
}
